<!doctype html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="../css/style.css" />
		<link rel="stylesheet" href="../css/iconfont.css" />
		<script src="../js/head_public.js"></script>
		<style>
			.mui-active{color: #ff7e00!important;}
		</style>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav ding-bar">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title">我的购物</h1>
		</header>
		<div class="mui-content">
            <div class="gr-gw">
            	<div class="gw-tx"id="touxiang">
            		<img src="../images/zhuce-touxiang.png" />
            	</div>
            	<div class="nice">
            		<h1 id="username">昵称</h1>
            		<p id="phone"></p>
            	</div>
            </div>
            <div class="kong"></div>
            <ul class="mui-table-view mui-table-view-chevron geren-list1">
				<li class="mui-table-view-cell daifahuo-icon">
					<a data-href="../shopping/order1.html?state_type=10" class="mui-navigate-right" id="num-icon1">待付款</a>
				</li>
				<li class="mui-table-view-cell daishouhuo-icon">
					<a data-href="../shopping/order2.html" class="mui-navigate-right"  id="num-icon2">待发货</a>
				</li>
				<li class="mui-table-view-cell dsh-icon">
					<a data-href="../shopping/order3.html" class="mui-navigate-right"  id="num-icon3">待收货</a>
				</li>
				<li class="mui-table-view-cell yishouhuo-icon">
					<a data-href="../shopping/order4.html" class="mui-navigate-right" id="num-icon4">已完成</a>
				</li>
				<li class="mui-table-view-cell quanbu-icon">
					<a data-href="../shopping/order5.html" class="mui-navigate-right" id="num-icon5">全部</a>
				</li>
			</ul>
			<div class="kong"></div>
			<ul class="mui-table-view mui-table-view-chevron geren-list1">
				<li class="mui-table-view-cell shdz ">
					<a data-href="address.html" class="mui-navigate-right">我的收获地址</a>
				</li>
			</ul>
		</div>
		<footer>
			<nav class="mui-bar mui-bar-tab gouwu-footer">
				<a class="mui-tab-item " data-href="../public/index.html">
					<span class="mui-icon  iconfont icon-shangcheng "></span>
					<span class="mui-tab-label ">首页</span>
				</a>
				<a class="mui-tab-item " data-href="car.html">
					<span class="mui-icon iconfont icon-gouwuche"></span>
					<span class="mui-tab-label">购物车</span>
				</a>
				<a class="mui-tab-item" data-href="wode.html">
					<span class="mui-icon iconfont icon-Personal sp-footer-active"></span>
					<span class="mui-tab-label sp-footer-active">我的</span>
				</a>
			</nav>
		</footer>
		<script src="../js/mui.min.js"></script>
		<script src="../js/jquery-1.8.0.min.js"></script>
		<script src="../js/session.js"></script>
		<script src="../js/common.js"></script>
		<!--<script>-->
<!--//			$("footer").load("footer3.html")-->
		<!--</script>-->
		<script type="text/javascript">
			mui(".geren-list1").on("tap","li a[data-href]",function(){
				location.href=$(this).attr("data-href");
//				mui.openWindow({url:$(this).attr("data-href")})
			})
			mui("footer").on("tap","a",function(){
				location.href=$(this).attr("data-href");
//					mui.openWindow({url:$(this).attr("data-href")})
			})
			var userid = getCookie("userid");
			$(function(){
				if(userid==""||userid==null){
		    	alert("您还没有登录，请先登录！");
		    	location.href="../public/login.html"
//              mui.openWindow({url:"../public/login.html"})
		    }else{
		    
		    	$.post(net+"/public/index.php?s=api/Memberorder/index/",{"member_id":userid},function(res){
		    		if(res.code=="200"){
		    			$("#phone").html(res.result.member_mobile)
		    			$("#username").html(res.result.member_username)
		    			if(res.result.member_avatar!=null&res.result.member_avatar!=""){
		    				$("#touxiang").html('<img src="'+net+res.result.member_avatar+'" />')
		    			}
		    			if(res.result.order_nopay_count>0){
		    				$("#num-icon1").after('<span class="num-icon">'+res.result.order_nopay_count+'</span>')
		    			}
		    			if(res.result.order_noship_count>0){
		    				$("#num-icon2").after('<span class="num-icon">'+res.result.order_noship_count+'</span>')
		    			}
		    			if(res.result.order_noreceipt_count>0){
		    				
		    				$("#num-icon3").after('<span class="num-icon">'+res.result.order_noreceipt_count+'</span>')
		    			}
		    			if(res.result.order_noeval_count>0){
		    				$("#num-icon4").after('<span class="num-icon">'+res.result.order_noeval_count+'</span>')
		    			}
		    			if(res.result.order_count>0){
		    				$("#num-icon5").after('<span class="num-icon">'+res.result.order_count+'</span>')
		    			}
	
		    		}
		    	})
		    }
			})
		    
		   
		</script>
	</body>

</html>